<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<%@ include file="head.jsp" %>
<body>
<%@ include file="nav.jsp" %>
<div class="container-fluid">

    <a href="/admin/cate/add" class="btn btn-primary">添加</a>
    <table class="table table-hover">
        <tr>
            <th>id</th>
            <th>名称</th>
            <th>状态</th>
            <th>排序</th>
            <th>操作</th>
        </tr>


        <c:forEach items="${categories}" var="category">
            <tr>
                <td>${category.id}</td>
                <td>${category.name}</td>
                <td>${category.status}</td>
                <td>${category.sort}</td>
                <td>
                    <a href="/admin/cate/edit?id=${category.id}" class="btn btn-success">编辑</a>
                    <a href="/admin/cate/del?id=${category.id}" class="btn btn-danger">删除</a>
                </td>
            </tr>
        </c:forEach>


    </table>
</div>

<%@ include file="foot.jsp" %>
</body>
</html>
